import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.backends.lwjgl.LwjglApplication
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.GL10

fun main(args: Array<String>)
{
    val config = LwjglApplicationConfiguration()
    config.width = 480
    config.height = 320
    config.useGL20 = true
    config.backgroundFPS = 30
    config.foregroundFPS = 120
    config.initialBackgroundColor = Color.GRAY
    config.resizable = false
    config.title = "Hello LibGdx"
    LwjglApplication(MainPage(), config)
}

class MainPage : ApplicationAdapter()
{
    override fun render()
    {
        Gdx.gl.glClearColor(1F, 1F, 1F, 1F)
        Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT)
    }
}